<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <meta name="renderer" content="webkit" />
    <meta name="force-rendering" content="webkit" />
    <title>订单详情</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="viewport"
        content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">

    <link rel="stylesheet" href="../css/shop.css">
    <link rel="stylesheet" href="../css/weui.min.css">
    <link rel="stylesheet" href="../css/jquery-weui.min.css">
    <script src="../js/jquery-2.1.4.js"></script>
    <script src="../js/jquery-weui.js"></script>
    <script type="text/javascript" src="../js/city-picker.js" charset="utf-8"></script>
    <script src="../wxJs/utils/contain.js"></script>
    <script src="../wxJs/utils/storage.js"></script>
    <style>
        .weui-form-preview__label,.weui-form-preview__label{
            color: #333;
        }


    </style>
</head>

<body>
    <div class="header">
        <a class="haader-left" href="javascript:window.history.go(-1)"><i class="iconfont icon-left"></i></a>
        <div class="haader-content">订单详情</div>
        <div class="haader-right">
        </div>
    </div>

    <div class="weui-form-preview" id="orderDetail">

    </div>
</body>
<script>
    var orderId =GetQueryString("orderId")
    $.post(getWeiContextPath() + "/wx/order/queryOrderDetail", {orderId: orderId}, function (obj) {

        var convertMoney=0
        if (obj.convertMoney) {
            convertMoney = obj.convertMoney
        }
        var reduceMoney=0
        if (obj.reduceMoney){
            reduceMoney =obj.reduceMoney
        }
        $('#orderDetail').html('<div class="weui-cell">\n' +
            '            <div class="weui-cell__bd">订单号</div>\n' +
            '            <div class="weui-cell__ft">\n' +
            '                '+obj.orderNum+'\n' +
            '            </div>\n' +
            '        </div>\n' +
            '        <div class="weui-cell">\n' +
            '            <div class="weui-cell__bd">购买人</div>\n' +
            '            <div class="weui-cell__ft">\n' +
            '                '+obj.nickName+'\n' +
            '            </div>\n' +
            '        </div>\n' +
            '        <div class="weui-cell">\n' +
            '            <div class="weui-cell__bd">购买人电话</div>\n' +
            '            <div class="weui-cell__ft">\n' +
            '                '+obj.phoneNum+'\n' +
            '            </div>\n' +
            '        </div>\n' +
            '        <div class="weui-cell">\n' +
            '            <div class="weui-cell__bd">购买时间</div>\n' +
            '            <div class="weui-cell__ft">\n' +
            '                '+obj.confirmTime+'\n' +
            '            </div>\n' +
            '        </div>\n' +
            '        <div class="weui-cell">\n' +
            '            <div class="weui-cell__bd">订单金额</div>\n' +
            '            <div class="weui-cell__ft">'+obj.beforePrice+'</div>\n' +
            '        </div>\n' +
            '        <div class="weui-cell">\n' +
            '            <div class="weui-cell__bd">优惠金额</div>\n' +
            '            <div class="weui-cell__ft">'+reduceMoney+'</div>\n' +
            '        </div>\n' +
            '        <div class="weui-cell">\n' +
            '            <div class="weui-cell__bd">积分抵扣</div>\n' +
            '            <div class="weui-cell__ft">'+convertMoney+'</div>\n' +
            '        </div>\n' +
            '        <div class="weui-form-preview__hd">\n' +
            '            <label class="weui-form-preview__label">付款金额</label>\n' +
            '            <em class="weui-form-preview__value cl-main">¥'+obj.realityPrice+'</em>\n' +
            '        </div>')
    })

</script>
</html>